package com.edais.persistence;

import java.util.List;
import java.util.Map;

import com.edais.domain.BorrowerCompany;
import com.edais.vo.InvestVo;

/**
 * ClassName: WeixinEnjoyMapper 
 * @Description: 接口
 * @author chenshufeng
 * @date 2016-6-7
 */
public interface WeixinEnjoyMapper {
	/**
	 * @Description: 获取投资列表记录
	 * @param @param map
	 * @param @return   
	 * @return List<InvestVo>  
	 * @throws
	 * @author chenshufeng
	 * @date 2016-6-7
	 */
	public List<InvestVo> getInvestList(Map<String,Object> map);
	
	/**
	 * @Description: 获取投资列表总记录
	 * @param @param map
	 * @param @return   
	 * @return Integer  
	 * @throws
	 * @author chenshufeng
	 * @date 2016-6-7
	 */
	public Integer getInvestListSize(Map<String,Object> map);
	
	/**
	 * @Description: 获取标的详情
	 * @param map
	 * @return String
	 * @throws  Exception
	 * @author 王丹清
	 * @date 2016-6-7
	 */
	public Map<String, Object> queryScaDetail(Map<String, String> paramsMap);

	/**
	 * @Description: 获取协议详情
	 * @param map
	 * @return String
	 * @throws  Exception
	 * @author 王丹清
	 * @date 2016-6-7
	 */
	public BorrowerCompany queryBrCompany(Map<String, String> paramsMap);

	/**
	 * @Description: 查询标的列表
	 * @param map
	 * @return String
	 * @throws  Exception
	 * @author 王丹清
	 * @date 2016-6-7
	 */
	public List<Map<String, Object>> queryEnjoyLoanList(Map<String, Object> paramsMap);

	/**
	 * @Description: 查询标的总件数
	 * @param map
	 * @return String
	 * @throws  Exception
	 * @author 王丹清
	 * @date 2016-6-7
	 */
	public int queryEnjoyLoanCount(Map<String, Object> paramsMap);
	
	/**
	 * @Description: 保存ios设备信息
	 * @param @param paramsMap   
	 * @return void  
	 * @throws
	 * @author chenshufeng
	 * @date 2016-6-22
	 */
	public void saveIosDeviceInfo(Map<String, Object> paramsMap);
	
	/**
	 * @Description: 根据Ip统计条数
	 * @param @param paramsMap
	 * @param @return   
	 * @return Integer  
	 * @throws
	 * @author chenshufeng
	 * @date 2016-6-24
	 */
	public Integer countSumIosInfo(Map<String, Object> paramsMap);
	
	/**
	 * @Description: 修改ios设备信息
	 * @param @param paramsMap   
	 * @return void  
	 * @throws
	 * @author chenshufeng
	 * @date 2016-6-24
	 */
	public void updateIosDeviceInfo(Map<String, Object> paramsMap);

	/**
	 * @Description: 优享计划详情(网站)
	 * @param @param map
	 * @param @return   
	 * @return Map<String,Object>  
	 * @throws
	 * @author chenshufeng
	 * @date 2016-9-4
	 */
	public Map<String, Object> getEnjoyPlanDetail(Map<String, String> map) throws Exception;

	/**
	 * 获取banner
	 * @return
	 * @throws Exception
     */
	public List<Map<String,String>> getInvestBannerList() throws Exception;

	/**
	 * @Description: 获取数据库系统时间(时分秒)
	 * @param @return   
	 * @return String  
	 * @throws
	 * @author chenshufeng
	 * @date 2016-12-14
	 */
	public String querySysTime() throws Exception;
}
